package com.nxy.test.netty.handle;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by snailnan on 2017/2/28.
 */
public class EchoServerHandle extends ChannelInboundHandlerAdapter{

    public static final Logger logger =LoggerFactory.getLogger(EchoServerHandle.class);

    @Override
    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
        logger.info(msg.getClass().getName());
    }
}
